import { Elysia } from "elysia";
import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();

async function index() {
  const allCountries = await prisma.country_states.findMany();
  return allCountries
}

const app = new Elysia().get("/", () => index ).listen(3000);

console.log(
  `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);
